package com.goldcn.user.dao;

import com.goldcn.user.model.Message;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MessageMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Message record);

    int insertSelective(Message record);

    Message selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Message record);

    int updateByPrimaryKey(Message record);

    List<Message> selectMessageByType(@Param("type") String type, @Param(value = "companyID") Long companyID);

    List<Message> selectByTypeAndTime(Map<String, Object> param);

    List<Map<String,Object>> selForAdminUser(@Param(value = "companyID") Long companyID);

    List<Map<String,Object>> selForAppUser(@Param(value = "companyID") Long companyID);
}